/*
	Dracula's Riddle Level 41 Solver
    Copyright (C) 2009  nightmare

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package lvl41;

/**
 * Main - initiates the Cogs object and solves the level
 * @author nightmare
 * @version 1.00.01
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
		if (args.length == 0) {
			System.err.println("Usage: java -jar /path/to/folder/lvl41.jar <command>");
			System.err.println("For avaliable commands type java -jar /path/to/folder/lvl41.jar h");
		} else if (args[0].equals("h")) {
			System.out.println("Avaliable commands: ");
			System.out.println("\t solve - solves the riddle ");
			System.out.println("\t about - prints information about GPLv3 ");
			System.out.println("\t h - prints this help ");
		} else if (args[0].equals("solve")) {
			Cogs c = new Cogs();
			c.solve();
		} else if (args[0].equals("about")) {
			System.out.println("Dracula's Riddle Level 41 Solver  Copyright (C) 2009  nightmare");
			System.out.println("This program comes with ABSOLUTELY NO WARRANTY.  This is");
			System.out.println("free software, and you are welcome to redistribute it under");
			System.out.println("certain conditions; consult the distributed license for details.");
		} else {
			System.err.println("Unhandled command recieved.");
			System.err.println("Usage: java -jar /path/to/folder/lvl41.jar <command>");
			System.err.println("For avaliable commands type java -jar /path/to/folder/lvl41.jar h");
		}
        
    }

}
